<!DOCTYPE html>
<html>
<head>
    <script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
    <script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>

    <link href="https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet" />
</head>
<body>
    <div class="container">
        <div>
            <h1>Popup 1</h1>
            <a id="lnkPopup2" href="#">Show Popup2</a>
            <br />
            <div id="divPopup2Value" ></div>
        </div>
    </div>

    <link href="Scripts/iFramePopup.css" rel="stylesheet" />
    <script src="Scripts/iFramePopup.js"></script>
    <script>
        $(function () {

            function fn_Success(value, sender) {
                $("#divPopup2Value").html(value);
            }

            function fn_Close() {
                alert('Closed- Popup 2');
            }

            var lnkPopup2 = $("#lnkPopup2");

            lnkPopup2.click(function () {
                var options = {
                    width: 400,
                    height: 300,
                    onsuccess: fn_Success,
                    oncancel: fn_Close,
                    sender: lnkPopup2,
                    url: 'PopUp2.html?title=Popup 2',
                    title: null
                };

                $.iFramePopup(options);
            });
        });
    </script>
</body>
</html>